//一个状态模块，就是一个reducer
const proReducer = (state = { proList: [] }, action) => {
  const { type, payload } = action;
  switch (type) {
    case "getProList":
      return { ...state, proList: payload };
    default:
      return state;
  }
  
};

export default proReducer;
